<template>
  <div class="vip">
    <div class="hea">
      <p>为账户<span>{{username}}</span>购买会员</p>
    </div>
    <div class="power">
      <div class="pow1">
        <span>会员特权</span>
        <p>
          <span>会员说明</span>
          <i class="iconfont icon-fanhui1"></i>
        </p>
      </div>
      <div class="pow2">
        <div class="img">
          <img src="../assets/3.jpg"
               alt="">
        </div>
        <div class="con">
          <h4>减免配送费</h4>
          <p>每日减免30单，每日可减免3单，每单最高减4元</p>
          <p>蜂鸟专送专享</p>
        </div>
      </div>
      <div class="pow2">
        <div class="img">
          <img src="../assets/4.jpg"
               alt="">
        </div>
        <div class="con">
          <h4>减免配送费</h4>
          <p>每日减免30单，每日可减免3单，每单最高减4元</p>
          <p>蜂鸟专送专享</p>
        </div>
      </div>
    </div>
    <div class="power">
      <div class="pow1">
        <span>会员特权</span>
      </div>
      <div class="fee">
        <p>
          <span>1个月</span>
          <span class="vip_fee">￥20</span>
        </p>
        <button>购买</button>
      </div>
    </div>
    <div class="power">
      <div class="pow1">
        <span>兑换会员</span>
        <p>
          <span>使用卡号卡密</span>
          <i class="iconfont icon-fanhui1"></i>
        </p>
      </div>
    </div>
    <div class="power">
      <div class="pow1">
        <span>购买记录</span>
        <p>
          <span>开发票</span>
          <i class="iconfont icon-fanhui1"></i>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Vip',
  data: function () {
    return {
      username: localStorage.getItem('username')
    }
  },
}
</script>

<style lang="less">
body {
  background-color: #f5f5f5;
}
.vip {
  .hea {
    padding: 10px 10px 10px 16px;
    p {
      font-size: 14px;
      color: #666;
      span {
        color: #333;
        font-weight: 600;
      }
    }
  }

  .power {
    padding-left: 16px;
    background-color: white;
    margin-bottom: 10px;
    .pow1 {
      display: flex;
      justify-content: space-between;
      align-items: center;
      line-height: 47px;
      border-bottom: 1px solid #f5f5f5;
      span {
        font-size: 16px;
        color: #333;
      }
      p {
        span {
          font-size: 14px;
          color: #999;
          margin-right: 5px;
        }
        i {
          font-size: 12px;
          color: #999;
          padding-right: 10px;
        }
      }
    }

    .pow2 {
      display: flex;
      border-bottom: 1px solid #f5f5f5;
      padding: 18.75px 0;
      img {
        width: 37.5px;
        height: 42.2px;
        margin-right: 10px;
      }
      h4 {
        font-size: 16px;
        color: #333;
        font-weight: normal;
      }
      p {
        font-size: 12px;
        color: #999;
      }
    }
    .fee {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 16px 10px 0;
      p {
        span {
          font-size: 16px;
          color: #333;
        }
        .vip_fee {
          color: #ff6600;
        }
      }
      button {
        font-size: 14px;
        color: #ff6600;
        text-align: center;
        background-color: white;
        border: 0.1px solid #ff6600;
        border-radius: 5px;
        width: 60px;
        height: 28px;
      }
    }
  }
}
</style>